/**
 */
package fUML.Semantics.CommonBehaviors.Communications.util;

import fUML.Semantics.Classes.Kernel.CompoundValue;
import fUML.Semantics.Classes.Kernel.StructuredValue;
import fUML.Semantics.Classes.Kernel.Value;

import fUML.Semantics.CommonBehaviors.Communications.*;

import fUML.Semantics.Loci.LociL1.SemanticStrategy;
import fUML.Semantics.Loci.LociL1.SemanticVisitor;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.util.Switch;

/**
 * <!-- begin-user-doc -->
 * The <b>Switch</b> for the model's inheritance hierarchy.
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
 * to invoke the <code>caseXXX</code> method for each class of the model,
 * starting with the actual class of the object
 * and proceeding up the inheritance hierarchy
 * until a non-null result is returned,
 * which is the result of the switch.
 * <!-- end-user-doc -->
 * @see fUML.Semantics.CommonBehaviors.Communications.CommunicationsPackage
 * @generated
 */
public class CommunicationsSwitch<T> extends Switch<T> {
	/**
	 * The cached model package
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static CommunicationsPackage modelPackage;

	/**
	 * Creates an instance of the switch.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CommunicationsSwitch() {
		if (modelPackage == null) {
			modelPackage = CommunicationsPackage.eINSTANCE;
		}
	}

	/**
	 * Checks whether this is a switch for the given package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @parameter ePackage the package in question.
	 * @return whether this is a switch for the given package.
	 * @generated
	 */
	@Override
	protected boolean isSwitchFor(EPackage ePackage) {
		return ePackage == modelPackage;
	}

	/**
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
	 * @generated
	 */
	@Override
	protected T doSwitch(int classifierID, EObject theEObject) {
		switch (classifierID) {
			case CommunicationsPackage.CLASSIFIER_BEHAVIOR_EXECUTION_ACTIVITY: {
				ClassifierBehaviorExecutionActivity classifierBehaviorExecutionActivity = (ClassifierBehaviorExecutionActivity)theEObject;
				T result = caseClassifierBehaviorExecutionActivity(classifierBehaviorExecutionActivity);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.CLASSIFIER_BEHAVIOR_EXECUTION_ACTIVITY_OWNED_BEHAVIOR_ACTIVITY1: {
				ClassifierBehaviorExecutionActivity_OwnedBehaviorActivity1 classifierBehaviorExecutionActivity_OwnedBehaviorActivity1 = (ClassifierBehaviorExecutionActivity_OwnedBehaviorActivity1)theEObject;
				T result = caseClassifierBehaviorExecutionActivity_OwnedBehaviorActivity1(classifierBehaviorExecutionActivity_OwnedBehaviorActivity1);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.EVENT_DISPATCH_LOOP: {
				EventDispatchLoop eventDispatchLoop = (EventDispatchLoop)theEObject;
				T result = caseEventDispatchLoop(eventDispatchLoop);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.EVENT_ACCEPTER: {
				EventAccepter eventAccepter = (EventAccepter)theEObject;
				T result = caseEventAccepter(eventAccepter);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.SIGNAL_INSTANCE: {
				SignalInstance signalInstance = (SignalInstance)theEObject;
				T result = caseSignalInstance(signalInstance);
				if (result == null) result = caseCompoundValue(signalInstance);
				if (result == null) result = caseStructuredValue(signalInstance);
				if (result == null) result = caseValue(signalInstance);
				if (result == null) result = caseSemanticVisitor(signalInstance);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.CLASSIFIER_BEHAVIOR_EXECUTION: {
				ClassifierBehaviorExecution classifierBehaviorExecution = (ClassifierBehaviorExecution)theEObject;
				T result = caseClassifierBehaviorExecution(classifierBehaviorExecution);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.OBJECT_ACTIVATION: {
				ObjectActivation objectActivation = (ObjectActivation)theEObject;
				T result = caseObjectActivation(objectActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.GET_NEXT_EVENT_STRATEGY: {
				GetNextEventStrategy getNextEventStrategy = (GetNextEventStrategy)theEObject;
				T result = caseGetNextEventStrategy(getNextEventStrategy);
				if (result == null) result = caseSemanticStrategy(getNextEventStrategy);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CommunicationsPackage.FIFO_GET_NEXT_EVENT_STRATEGY: {
				FIFOGetNextEventStrategy fifoGetNextEventStrategy = (FIFOGetNextEventStrategy)theEObject;
				T result = caseFIFOGetNextEventStrategy(fifoGetNextEventStrategy);
				if (result == null) result = caseGetNextEventStrategy(fifoGetNextEventStrategy);
				if (result == null) result = caseSemanticStrategy(fifoGetNextEventStrategy);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			default: return defaultCase(theEObject);
		}
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Classifier Behavior Execution Activity</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Classifier Behavior Execution Activity</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseClassifierBehaviorExecutionActivity(ClassifierBehaviorExecutionActivity object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Classifier Behavior Execution Activity Owned Behavior Activity1</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Classifier Behavior Execution Activity Owned Behavior Activity1</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseClassifierBehaviorExecutionActivity_OwnedBehaviorActivity1(ClassifierBehaviorExecutionActivity_OwnedBehaviorActivity1 object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Event Dispatch Loop</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Event Dispatch Loop</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseEventDispatchLoop(EventDispatchLoop object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Event Accepter</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Event Accepter</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseEventAccepter(EventAccepter object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Signal Instance</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Signal Instance</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseSignalInstance(SignalInstance object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Classifier Behavior Execution</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Classifier Behavior Execution</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseClassifierBehaviorExecution(ClassifierBehaviorExecution object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Object Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Object Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseObjectActivation(ObjectActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Get Next Event Strategy</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Get Next Event Strategy</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseGetNextEventStrategy(GetNextEventStrategy object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>FIFO Get Next Event Strategy</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>FIFO Get Next Event Strategy</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseFIFOGetNextEventStrategy(FIFOGetNextEventStrategy object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Semantic Visitor</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Semantic Visitor</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseSemanticVisitor(SemanticVisitor object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Value</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Value</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseValue(Value object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Structured Value</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Structured Value</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseStructuredValue(StructuredValue object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Compound Value</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Compound Value</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseCompoundValue(CompoundValue object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Semantic Strategy</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Semantic Strategy</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseSemanticStrategy(SemanticStrategy object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
	 * @generated
	 */
	@Override
	public T defaultCase(EObject object) {
		return null;
	}

} //CommunicationsSwitch
